home *** CD-ROM | disk | FTP | other *** search
- package javax.swing;
-
- final class JComponent$IntVector {
- int[] array = null;
- int count = 0;
- int capacity = 0;
-
- void addElement(int var1) {
- if (this.count == this.capacity) {
- this.capacity = (this.capacity + 2) * 2;
- int[] var2 = new int[this.capacity];
- if (this.count > 0) {
- System.arraycopy(this.array, 0, var2, 0, this.count);
- }
-
- this.array = var2;
- }
-
- this.array[this.count++] = var1;
- }
-
- int elementAt(int var1) {
- return this.array[var1];
- }
-
- void setElementAt(int var1, int var2) {
- this.array[var2] = var1;
- }
-
- int size() {
- return this.count;
- }
- }
-